package com.boot2.core;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

import javax.persistence.MappedSuperclass;

/**
* @author zhangweilin
* @date 2018/6/12 14:40 
* @description:  mongo基类
*/ 
@Data
@MappedSuperclass
// @JsonIgnoreProperties({ "ids" }) // 指定ids不序列化
public class MongoBaseEntity extends BaseEntity{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * mongo专用id
	 */
	@ApiModelProperty(value = "主键id")
	@Id
	private String objectId;

}
